﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Collections;

namespace Examen2009
{
    public partial class MenuPrincipal : Form
    {

        //Paciente[] paciente;
        ArrayList pacientes = new ArrayList();


        public MenuPrincipal()
        {
            InitializeComponent();
        }

        private void btSalir_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void acercaDeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AcercaDE a = new AcercaDE();

            a.Show();
        }

        private void introducirDatosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Introducir_Datos f1 = new Introducir_Datos(ref pacientes);

            f1.ShowDialog();
        }

        private void salirToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Realmente quiere salir?", "Pregunta de seguridad", MessageBoxButtons.OKCancel) == DialogResult.OK)
                Close();

          

        }

        private void consultarDatosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ConsultarPaciente f = new ConsultarPaciente(ref pacientes);
            f.ShowDialog();
        }
    }
}
